package com.zhongyouyun.admin.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhongyouyun.admin.model.UserModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhongyouyun.admin.pojo.UserDetailPojo;
import com.zhongyouyun.admin.pojo.UserPojo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * @Author: shenyi
 * @Date: 2021-09-23
 * @Description: 用户表Mapper
 */
@Mapper
public interface UserMapper extends BaseMapper<UserModel> {
    IPage<UserPojo> selectPojoPage(Page page, @Param(Constants.WRAPPER) Wrapper query);

    UserDetailPojo getDetails(@Param(value = "id")Long id);
}
